package com.weigang.web.controller;

import com.weigang.web.entity.Person;
import org.springframework.http.converter.json.GsonHttpMessageConverter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class PersonController {


    @GetMapping("/person")
    public Person person() {
        Person person = new Person();
        person.setName("zhang san");
        person.setAge(24);
        person.setBirthday(new Date());
        return person;
    }


}
